import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;

public class Mapwork {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        Map<Integer,String> map = new HashMap<Integer, String>();
        map.put(1, "Amy");
        map.put(2, "Joe");
        map.put(3, "Tom");
        map.put(4, "Susan");
        Set set = map.keySet();
        for (Object obj : set ) {
            System.out.println(obj + ""+map.get(obj));
        }
        System.out.println("");
        int a = scan.nextInt();
        String b = scan.next();
        map.put(a,b);
        map.remove(4);
        map.replace(3,"Tom","Tommy");
        Set t = map.keySet();
        for (Object obj : t ) {
            System.out.println(obj + ""+map.get(obj));
        }

    }
}
